﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using ObjectLibrary;

namespace _0912089_0912172
{
    public class MyCursor : VisibleGameEntity2D
    {
        private bool _visible;

        public bool Visible
        {
            get { return _visible; }
            set { _visible = value; }
        }
        public MyCursor(ContentManager content)
        {
            _texture = content.Load<Texture2D>(@"Resources/System/cursor");
            _position = Vector2.Zero;
            _visible = true;

        }
        public override void Draw(GameTime gameTime, SpriteBatch spriteBatch)
        {
            if(_visible)
                spriteBatch.Draw(_texture,_position, Color.White);
        }
    }
}
